eloquent get query log

109

How to Log Query in Laravel -

DB::enableQueryLog();
$arr_user = DB::table('users')->select('name', 'email as user_email')->get();
dd(DB::getQueryLog());

Comments

Submit
0 Comments